﻿using SD.TeachSystem.Service;

namespace SD.TeachSystem.API.Service
{
    public class AllLazyService
    {
        // 懒加载service服务
        private Lazy<DemoService> _demoService;

        public AllLazyService(Lazy<DemoService> demoService) 
        {
            _demoService = demoService;
        }

        // 案例服务
        public DemoService demoService=>_demoService.Value;
    }
}
